package com.zmzncs.shop.module.system.pojo.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UserSearchForm {

    @ApiModelProperty(value = "页码",required = true)
    @NotNull
    private Integer currentPage;

    @ApiModelProperty(value = "每页记录数",required = true)
    @NotNull
    private Integer pageSize;

    public Page getPage() {
        return new Page(currentPage, pageSize);
    }


}
